<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateYsBooktypeTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('booktype', function(Blueprint $table)
		{
			$table->increments('id')->comment('主键id');
			$table->string('name')->comment('类型名称');
			$table->tinyInteger('status')->nullable()->default(0)->comment('类型状态 0男频,1女频');
			$table->string('cover')->nullable()->comment('类型封面');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('booktype');
	}

}
